removed global registry in tasks