fix command substitution for SOCKET env variables
add example session