read newlines better from file