first version of PNManager, java side only.