changed type of FileMigrationHostApplication to console app
implemented logic for console-application