added key option and rudimentary xclip support