added paperclip support