allow config in class level