changed error macro to use lager:error