initial sharing function
playing around, todo: fix files with spaces