added logging to BasicSession