introduced sessionPreferred for sending session if available
Merge remote-tracking branch 'origin/develop' into develop