modified build_and_install