add presence filter
fix problems from go vet and go fmt