added exception for subprocess