added bamstat back in