read domain dynamically