added error exception and return value for load_group