automatic main finding + better inclusion files finder