bug: path should be singular for token replacement to work