implemented minimal full flow