fixes script for new debug