handleling multiple files.

now it complains for repeated name on procedure