increase maximum string length
use tmpnam for temporary filenames