fix path bug; add x perm