added basic flow