migrate useful classes from simple-utils