added clipboard support