protect around error in studio
Added tracing to assist with debugging in remote environments