Improvement: get realm from config file