smarter SetPrefix, and tests