removed unsafe use of user input in cpt parser