adding session stuff