xpm reading fixes - the end