added support for 'insecure' flag and 'service_cfg' entries