made main simpler. left off at memoryman