working with session errors