use mini-logger and error-formater