tweak pasting, fix terminal for mac