poll + rewrite onNode into processP + processS