add module wrapper around Layout, make render just be the driver code