fixes #30, thanks Joe!