[init] allow passing nested resource name

closes #44