removing src, adding directives