more robust importing