moving script to a shell file