header.py simplified