fix return iterable type
fix scan files