start to refactor header settings
more callframe optimizations