added messaging for content script and additional method to format final path string