added all the security for connections