moving options processing to helpers file