https://github.com/jtleek/datasharing fork