fork template for index