moved out article fetching code to new file