make the parser do inputstream looping