added auth
fixed protocol issue