updated version with proper directive management
readme