implemented fix for EE 2.7 as described here: http://expressionengine.stackexchange.com/questions/13659/copee-pastee-alternative