ported utils to self contained module