- format and debug for errors