cleaned up mac stuff