added basic auth and logging