temp patch to not write error logs when there is no key