created TMP files for API to deal with network issue (not optimal solution, but workable)