allow snap_type as a query parameter.