replace task queue with flags, WIP prymitive/upaas#59