fix plugin argument handling