refactor and comment for readability
only emit command specific emits when packets are valid
move command acceleration back to buffer equality