fix service startup issues