collect environment data only once