bug fixes for somatic output