changes to get this to work on Cloud Foundry