fixed parameters passing in worker decorator, fixed windows compatibility