fix error prints according to new laws