add simple api support