more shell scripting stuff