fix
detect file suffixes of all lengths