small changes to debug bb