added aes encryption and made security config more sane