integrated flask-script, reword variables & files