moar refactoring
added share functionality