change tasks to be server closures that are passed around and spawned locally