modified to be started on cloudfoundry