some cleanup of minification