sort out symlink issues with public directory