Add index legos
Index legos example, and fix swallowed exception