using more standard way to access api