Preventing, avoiding and resolving tax disputes