fix fileExists, start buildRepo implementation