adding auth and keyfile