more modularity on the updating global atom from http requests