added debug prints in LOG (INFO, not DEBUG, cause I don't know yet how to switch on printing the DEBUG messages)