more work on p2js convert