clean up directives and only focus on modern Selection and Range APIs for now