automatic parameter sanitization and base helper module