added file uploading to unit with paperclip