conway bugfixes and optimized