finishing some shell scripting