xpm reading fixes - the end 2