fixed foreign imports for half arrays