sessions now work with specs (fixes #49).