changes to debug mode