initialize namespace tree based on initial appcontext