server-based play code