added logger messages for /var/log/ in order to know what happens