proxy: use a mutex instead or a channel
proxy: simplify endpoints
proxy: update logging