changed init parameters to options