allow filename to be specified