first, almost complete draft of delim