working on condensing aes to one script