add functions to disk