broken version of script to create the encoder layout