add layout_options, fixes #495