after script and echo to before