generate wrapper file around records