to behave like console app
delete old file