cleaned up some debugcode