added sessionid support