potential fix for github issue #8 to be reviewed