slightly more readable with bitcoin
less debug prints