separated debug console into separate script