replace hand-crafted constants by generated ones
add logging to stun code