consolidated parseParams and paramsToObj