updating import script to handle groups