refator signing and add api
querystring parsing