switched to subprocess