cleaning imports and removing logs