a working script now