new fast version of input parse implemented and some bugs fixed