code condensed into sidekiq and troubleshooting bugs