initial version for chrome extension