simplified module init, added nonconsole call option