modified trove.py cwd