extract values and nested values from procedures