moved API call into protected method outside of constructor