fix language lookup on file names
draft own analysis loop