use util.format for error strings