add script to encode whole folder