payload.py: package -> pkg, to avoid shadowing func of same name