events and layouts: manual transpilations