added setCustomOption method