filepath argument handling