put api loading into specific method