added options to constructor