unsmell application_controller
fix attachment parsing