scheme cleanup