fixed some startup errors
removed some debug prints