move all backend index methods to new file