remove appbuild-tools and refactor modelmanager,model