fix boiler-plate failing when passed a filename