setup constructor to get config value for field names, updated for static: everything up to create_tree