custom debug script added