fix permissions in parser
chars thru function tk