allow token replacement on readonly files