fixed session+sessionstate and messaging