fixes #12 - ensures session is started before getting session ID