set TARGET in the API lib