automate start of API