environment refresh on restart #528