add logging for things which rais invalid request