pass session into custom block