boneserver rewritten from scratch