adding NetworkModule to run online and offline