cleaning up some clipboard stuff