adding support for external tasks