added method to read values from URL query string