physics fixes, added debug info