updated session id generator