Template import

adds template importing to close #731