add template for directory entry