added path as a second parameter to init