converted cli program to web app.