session stuff now somewhat working