classes and libs for one-off scripts