adding project dir detection