added option to set the security mode in qml