added callback to getsessions