extract top-level to hiss.py
simplify