fix mismatch between front and backend; catch errors