finally got paperclip working