test debug mode added