wrapped up template in its own dir