only define change_hook once 

gets rid of warning `Subroutine CAF::FileWriter::change_hook redefined at /usr/lib/perl/CAF/FileWriter.pm line 45.`