added simple encryption handling