promise and add array sessions ont he server