fixed compile/runtime errors, starts but hangs