builds and runs but not encrypting