fix to work with workers with one optional argument