dont blow up if opts or tlis not undefined