remove lager and replace with error log