finish logrm.go