fix dependency and require grammar