added initialisation of ttygif to the script