add path in opts. rename key to path.