pre functions now have access to parameters
added check for ambiguous parameters