make head accept files instead of just html elements