fixes for encryption - sign sequence