improvements to markers.py