split out separate rest_index.go file