printing goes to debug mode