first parser corrected  and logger added