added substitution of magic constants to maintain filesystem context