more code towards working...it actually compiles now...doesn't work of course yet