fix some inspections
add some exception handlers within the controllers