mid-implementation of generation algos

broken build