fixed function args parsing