moved head section into its own file