update for using window service (relate with pull request #51)