add mode selection capability to aes