allow for using run flow with flow def because it might be passed from outside