attempted implementation of nomic, adapted to be as automated as possible