some fixes in crab deployment/ai