other entries no longer needed
modified  to use select instead of sleep
fixing shell()