server add logic