adding availability zone detection