changed path, and added logging