restore my functions to  "debug to sd"