fix read markers, remove unused function