ported volumes::init_layers process. references #29