also, remove a useless console.log closes #661
More work is needed to complete this, but the basics is here, and it is difficult to test. closes #612