added custom http args support and fixed query arg formatting