prioritizing directives and using terminal.