need to set the valid_types before doing any get