add debug flag & change content-type
json parser read key case insensitive
fix time unit diff between server and client