mark function as static
session: remove old-style def
notes in readme