added windows service hosting support