first pass at working script