WIP: directives basic functionality is working now