some changes to use kaBEM on its own instead of a node submodule