refactor project find logic into projects.py to use with selecta