my python foolishness introduced an exploit
refactoring