refactored the passenger install code