added in aes crypto stuff from MTR