some SED work (incomplete)