added -t option to worker command