updated script with new API