don't create an unnecessary legacy session
eliminate duplication of json endpoint

fixes #3