libraries and templates