add write_cpanfile() convenient method