adding statics and templates