fix curly braces
bind session and make defensive copy of sublist