handle empty environment, eg R / GET from bash