add routine to read directive file