updated to use latest version of library template