cleanup on mac side