script for app
so close to final