split installing into two phases