migrate lib/utils