rename options to opts