consolidated command execution in frontend