add logs, fix error caused by missing "/"