fix for res without headers