fix layout and add resource records