added regions, added debugging, fixed pop effects, fixed hash on pop