fixed an empty catch by adding some logs