add index to api/checks