speed tuning and file cleanup