moving script to eof