remove unneeded path in arguments