partially fixes #47 per @JavaScriptDude’s suggestion