changed mac clipboard handling