clean up directives; alert directive