added support for scala session