small changes to debug