improved endo and games.client. needs to test endo a bit more