adding security features and agent