complete server side prototype