setting up for a directive