added sane pasting