adapted to pyhdfeos