added server side line parsing