fix a small bug in some templates, add roots serve, closes #177