finished protoype of nerdigally, end of hack session, refactored code - not tested