comments handling and error interceptor