check allowedWorkOptions with hash