logging before doing. maybe now we can see what the exception is about