functions for (port, backup_path, key existing) checking were added