added smart paste hack (private api, unsupported)