updated import functionality