testing for pcb creation added to debug mode