fixes for the phreepos