pause functionality
changing some debug output