Fix issue #59

address #59

Also adds generic support for issues of unknown type.