patched AI crane counter; added debug