corrected many shell issues + added buggy support for gifs