Added optional refresh on sourcing global env