debug mode test added