add logging in default gw and remove some stupid