make fit filename configurable in constructor