refactor share module to use new install api function