fixes issue #42 by changing how port binding is configured.