some minor fixes for parameter handling