optionally pass filename as argument to parser