made gas pumps thread safe