add some rough logging. contributes to #2