added a 'closed' function to most types
a lot more on the todo list