Improved share functionality and dynamically reading config