I found this through a comment on an issue and thought this might save someone some time looking through the code. fixes #1148