fix service init and log