fixes github issue #54