improvements and debugging earnings updater