changed some crypto stuff