fixing node functions
adding connections and connection pooling, and tests