add listtasks fn