added p5 (read headers) to Scala and node