fix a few issues wiring module into application