add layout for a script/phash