add gzip support
Fix the rest model init error