handling error exposing