added custom session key support