support both object and renderer options in one options array