basic rate limiting and error reporting