setting up the security module