some self-written extensions for popclip.