= fixed to work with latest ps-foreign