remove index and fix try/catch