call update_api() on plc before returning it in get_plc()