flag to avoid instantiating api