some debug output added to control and release