make protocols optional
Make passing protocols to applications optional.

Only to be used with NullServer
minor fix.