added required property to options and logis to script