added request error callback