scope index() (fixes #11)