initial attempt at compiling directives