added dead simple leaf_input parser