stop using params directly in non-init classes