more refined utility library