first stab at log-gen