fixed finite automata, and now handles all vlc processes, might give new errors