workaround for fs permission issue; setup env