First refactory of the VME server code