initial commit: undocumented and messy, but works