include unit in statistics (fixes #56)