added max records to api