add clean to factory script