bug in getarg
trimarg simplification