fix(server) respond: change funcs before call