changes in how keys are passed, added region support