added base template and directory