add class functions to partials