move import into ifmain block