add layout parsing