update phantom building script