fixed initialization with options