cleanup for mavericks