set message.id to long
add init function for server base
add session