improvements in coordinates
multiple span improvement
fix to references
changing reference rules