added raise on check, and some debug info