pass all vars to init