add get parameters function
change a little to accommodate to the automatic parameter reading pipeline