internal module defns for node and express