Handling directives and comments (need cleaning)