added erro handler