add backwards compatibility to #42