now do dependency injection for run session into run unit to fix a bug in branch (formerly using global run sessions)