add check in case security is not enabled