adjust directory to add portal and manage structure of entire directory.