first basic metrics ok, todo: test with real files and implement other metrics