* do not need to specify sub when invoking with_temp * added file_contents as wrapper for file_read for backward compatibility * code cleanup