fixed the error printing issue -- still working on module parameters.