clean up code before release