moved outside #ifdef FAKE_STAT