issues with code sharing on instances of modules