read files and bind data