run_tftp, some additions, cleanup