modularize install process with the "stage" phase