fixed copy paste buffer and script