added script for web interface