upgrade server and bug fix of input()