parser redesigned for the synchronous call