edited the auto complete to better handle files