complete params manipulation for api