add better mr parser, login error handler