fixed nginx erb for new datastruct