some adjustments to support loading grdata