wip. great progress. file writing directives