added a script to use API