share feature now added, nullpointer catch as well