added security factory