add support of swauth