added the retrieval of query and post params