separate grid command compile process.