added methods to the currently incomplete parser.