update to resync service for better error handling and fix a few bugs related to getting at data

removed prints in favor of log messages, also fixed a bug relating to the SGS url