add hooks
save collection to fs after insert, update