move optimize from master command
delete unused file