clean up for production mode