made some modifications to be able to run passenger