factor all utils to lib/util
lint