added timeouts to subprocess calls