added debugging code to .clp file