only append query_string if defined