#5 added support of auth