james | extracting base environment class