added exception caughts for all handlers