adding hierarchy and tree such that it reads the config file