fixed some compile time errors with retrieving param values in a map
fixed some compilation errors with the record writer