history queue backend implemented