small fixes for metaimport