new api and minified js for commit 088abe4