fixed bug in parse function where splitting by new lines did not work across all platforms