move rt53 config to function, test for empty RT53_DOMAIN_ID