refine data structure
test request headers
add ip
add sid to cid