ported version for demo server
added session key as get attribute
add  query ntp timestamp