split shepherd from run.py