working on building library for browser use