cleanup old functions (debug)