changed file reading & build mechanism