sophia: handle unsupported methods; make front-end thread-safe