pre layout and function merge files