add feature: read object from config