remove dead static stuff