update wsserver callback order