making layout options work as long as they are not objects