changed stat value fetching &c. to ints
added util module