bug fixes in study path
better logging