added a method to append query parameters maintaining the order