init from shell version