added obscure error and result handlings
added obscure error and result handlings