address obsolete api in nsb 5 for web initialization