improved parameters extraction from REST request