some more debug prints and some subtransactions