cleanup of debug, production flags