before changes so that getParameter is only called once by the wrapper
page and not by the charts generator