handle fetch correctly