cleanup, internal mime types map and params in view