add some of the functions suggested in #86