addes support for auth