changed from POJO config class to config listener