pmapi mostly working