removed api call from __init__