template accepts path and username