fixed #7 - patch by testerjoe