first try at dynamic header scaling