* move duplicated code from mfsbase to pyro