check that args.regions is set before using it