put getParam in an anonymous namespace