added possibility to set logPath