split builds into two phase