add api for chrome extension