fixes #2 - thanks matt