fixed the run interface to match the backend