argument check for path