fix for subprocess