removed patch, set variables via system call instead