make logging to sentry optional
disentangle api processing logic from text output