parse episode number to int;
update to a version that does not pollute the global namespace;