add functions as commands