reactivate exception catching
fix typos in coordinate indexing