fix accounting when using swauth