set security mode in startup