adding erro handler object