change setup hook API to include worker arguments