added resume feature for tally.php