only module level functions can be tasks
fix for interactive shell
fix TaskResult representation