added top-script and bottom script