added path type check
mc
mc