reconstruct the dentry of output and project