added initial infrastructure for skeleton fitting