added support for writing adjustments to external files