new functions

getVersion function
check_session function