github issue #12 and #28