split server and FreeCAD logic