added a todo to check dir is valid before adding to output work q