set api to initialise after eval