finished flow, needs to be cleaned up