adds shape param and parsing for name-value pairs