removes debugging code from ship