add directive to install main application