Physical reach of a neutrino factory in the 2+2 and 3+1 four family scenario