add logging to study controller