improvments and basic flow scripts