fixing dependencies and fixing request parameters for tpquery