basic implementation of single line parser