wip for the last directive bug