fix do not delete oldprogram and do not import if already imported