added ability to add custom query items and http headers