added worker param, fixed pid