create state selector with map, other updates