initial version of scripts; lightly tested.