add some defines
tweaks
small check fix
string tweaks
rc4
rc4 finalization