cosmetic rearrangement of functions
added explanatory message for encrypted streams