some simple line parsers