removing unnecessary dependencies
code cleanup and console trace fix for array of files