integrated heavily modified version of stajistics without all the useless Factory pattern overhead