moved all scripts to tools.py