xpm reading fixes - the end 3