github changes to simch.cpp