handling error in ARK