add functions to commonrc