add try/catch to request handlig; todo: do logging properly