simplify input filename figuring out, remove falsy comment