some utility library for D.