add exception function
add middleware
add nurse gem