finalizing task and integrating with paperclip