ptun integration wip