fixes #9 by @DaveyGiesen