added a bunch of stuff to make passenger work in production.