use shell script for kneesocks command
improve memory management