pass query props in to match get and other methods