some work on parameter parsing