moved options to constructor