serve: use inttypes in index