add support for pasting