customise error and warning in helper object