monitoring to file