added option to write out initial source guess