fixed process.task decorator
added thread.task