added full paperclip functionality