adding a crude form of auto scaling