improved check_goftari.py